This makes it a bit more convenient to make a code change, then
`rm -rf build && ./playbook-run.sh ...`.
Closes: #1535
Approved by: jlebon
# TEST_SUBJECTS being set.
set -xeuo pipefail
+dn=$(cd $(dirname $0) && pwd)
+if ! test -d build; then
+ mkdir -p build
+ (cd build && ${dn}/../../ci/build-rpm.sh)
+fi
+
# https://fedoraproject.org/wiki/CI/Tests
if test -z "${TEST_SUBJECTS:-}"; then
cat <<EOF
dn=$(cd $(dirname $0) && pwd)
-if ! test -d build; then
- mkdir -p build
- (cd build && ${dn}/../../ci/build-rpm.sh)
-fi
-
# TODO: parallelize this
PLAYBOOKS=${PLAYBOOKS:-nondestructive.yml destructive.yml}
for playbook in $PLAYBOOKS; do